<?php
$title = "회원상세";
$menu = 0;
require_once ('./admin.head.php');
$tpl = new Template_;
$tpl->template_dir = './tpl';
$tpl->compile_dir = './tpl/compile';

$_GET['division'] = isset($_GET['division']) ? $_GET['division'] : '';
$_GET['condition'] = isset($_GET['condition']) ? $_GET['condition'] : '';
$_GET['page'] = isset($_GET['page'])? $_GET['page']: 1;

switch ($_GET['division']) {
    case 'teacher':
        $teacherDivisionChecked = 'checked = "checked"';
    break;
    default : 
        $studentDivisionChecked = 'checked = "checked"';
    break;
}
	
$nameSelected = $birthSelected = $telNumSelected = '';
if(isset($_GET['condition'])) {
	switch ($_GET['condition']) {
		case 'birth':
			$birthSelected = 'selected = "selected"';
		break;			
		case 'telNum':
			$telNumSelected = 'selected = "selected"'; 
		break;
		case 'name':
			$nameSelected = 'selected = "selected"';
		break;
        default : 
            $selectSelected = 'selected = "selected"';
        break;
	}
}

$data = getDb('g4_member', $_GET['id'], 'mb_id');
switch ($data['mb_sex']) {
    case 'M': 
        $data['mb_sex'] = '남';
    break;
    case 'F': 
        $data['mb_sex'] = '여';
    break;
}
//$data['mb_division'];
$tpl->define('basic',"memberDetail.html");
$tpl->print_('basic');
require_once 'admin.foot.php';
